package com.css.dzj.zfjg.modules.supervisioncompinfo.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * 举报人员信息表
 */
@Entity
@Table(name = "JG_TSJB_USER_INFO", schema = "DZJZFJG", catalog = "")
public class JgTsjbUserInfoEntity {
    private String uuId;
    private String registerCode;
    private String name;
    private String address;
    private String sex;
    private String certificateType;
    private String certificateNumber;
    private String mobile;

    @Id
    @Column(name = "Uu_Id")
    public String getUuId() {
        return uuId;
    }

    public void setUuId(String uuId) {
        this.uuId = uuId;
    }

    @Basic
    @Column(name = "Register_Code")
    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    @Basic
    @Column(name = "Name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "Address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "Sex")
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Basic
    @Column(name = "Certificate_Type")
    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }

    @Basic
    @Column(name = "Certificate_Number")
    public String getCertificateNumber() {
        return certificateNumber;
    }

    public void setCertificateNumber(String certificateNumber) {
        this.certificateNumber = certificateNumber;
    }

    @Basic
    @Column(name = "Mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgTsjbUserInfoEntity that = (JgTsjbUserInfoEntity) o;
        return Objects.equals(uuId, that.uuId) &&
                Objects.equals(registerCode, that.registerCode) &&
                Objects.equals(name, that.name) &&
                Objects.equals(address, that.address) &&
                Objects.equals(sex, that.sex) &&
                Objects.equals(certificateType, that.certificateType) &&
                Objects.equals(certificateNumber, that.certificateNumber) &&
                Objects.equals(mobile, that.mobile);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuId, registerCode, name, address, sex, certificateType, certificateNumber, mobile);
    }
}
